package pt.isec.a21210392.a21190220.ludotwist;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MultiplayerMenuActivity extends Activity 
{
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_multiplayer_menu);
	}
	@Override
	public boolean onCreateOptionsMenu(Menu menu) 
	{
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.multiplayer_menu, menu);
		return true;
	}
	
	public void onMultiPlayerMenuHostGame(View v) 
	{
		Intent myIntent = new Intent(MultiplayerMenuActivity.this, HostGameActivity.class);
		MultiplayerMenuActivity.this.startActivity(myIntent);
	}	
	public void onMultiPlayerMenuJoinGame(View v) 
	{
		Intent myIntent = new Intent(MultiplayerMenuActivity.this, JoinGameActivity.class);
		MultiplayerMenuActivity.this.startActivity(myIntent);
	}	
	public void onMultiPlayerMenuBack(View v) 
	{
		this.finish();
	}
}